home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / glibc-1.09 / glibc-1 / glibc-1.09.1 / sysdeps / unix / bsd / osf1 / sigaction.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-07-18  |  1.7 KB  |  46 lines

  1. /* Structure and constand definitions for sigaction et al.  OSF/1 version.
  2.    Copyright (C) 1993 Free Software Foundation, Inc.
  3.    Contributed by Brendan Kehoe (brendan@zen.org).
  4.  
  5. The GNU C Library is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU Library General Public License as
  7. published by the Free Software Foundation; either version 2 of the
  8. License, or (at your option) any later version.
  9.  
  10. The GNU C Library is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  13. Library General Public License for more details.
  14.  
  15. You should have received a copy of the GNU Library General Public
  16. License along with the GNU C Library; see the file COPYING.LIB.  If
  17. not, write to the, 1992 Free Software Foundation, Inc., 675 Mass Ave,
  18. Cambridge, MA 02139, USA.  */
  19.  
  20. /* Structure describing the action to be taken when a signal arrives.  */
  21. struct sigaction
  22.   {
  23.     /* Signal handler.  */
  24.     __sighandler_t sa_handler;
  25.  
  26.     /* Additional set of signals to be blocked.  */
  27.     __sigset_t sa_mask;
  28.  
  29.     /* Special flags.  */
  30.     int sa_flags;
  31.   };
  32.  
  33. /* Bits in `sa_flags'.  */
  34. #ifdef    __USE_BSD
  35. #define    SA_ONSTACK    0x1    /* Take signal on signal stack.  */
  36. #define    SA_RESTART    0x2    /* Don't restart syscall on signal return.  */
  37. #define    SA_DISABLE    0x4    /* Disable alternate signal stack.  */
  38. #endif
  39. #define    SA_NOCLDSTOP    0x4    /* Don't send SIGCHLD when children stop.  */
  40.  
  41.  
  42. /* Values for the HOW argument to `sigprocmask'.  */
  43. #define    SIG_BLOCK    1    /* Block signals.  */
  44. #define    SIG_UNBLOCK    2    /* Unblock signals.  */
  45. #define    SIG_SETMASK    3    /* Set the set of blocked signals.  */
  46.